<script setup lang="ts">
import { defineProps } from 'vue';
import { RecursionField } from '@formily/vue';

// 定义接收的 props
const props = defineProps<{
  message: string;
  name: string;
  schema: any;
}>();
</script>

<template>
  <!-- 使用接收到的 props -->
  <div>
    <p>{{ props.message }}</p>
    <RecursionField :name="props.name" :schema="props.schema" onlyRenderProperties="true" />
  </div>
</template>

<style lang='less' scoped></style>